home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / PInterfaces / CMMComponent.p < prev    next >
Encoding:
Text File  |  1995-04-18  |  5.9 KB  |  183 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMMComponent.p
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMMComponent;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMMCOMPONENT__}
  30. {$SETC __CMMCOMPONENT__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMMComponentIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __QUICKDRAW__}
  43. {$I Quickdraw.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    QuickdrawText.p                                                }
  47.  
  48. {$IFC UNDEFINED __COMPONENTS__}
  49. {$I Components.p}
  50. {$ENDC}
  51.  
  52. {$IFC UNDEFINED __CMAPPLICATION__}
  53. {$I CMApplication.p}
  54. {$ENDC}
  55. {    Files.p                                                        }
  56. {        OSUtils.p                                                }
  57. {            Memory.p                                            }
  58. {    Printing.p                                                    }
  59. {        Errors.p                                                }
  60. {        Dialogs.p                                                }
  61. {            Windows.p                                            }
  62. {                Events.p                                        }
  63. {                Controls.p                                        }
  64. {                    Menus.p                                        }
  65. {            TextEdit.p                                            }
  66. {    CMICCProfile.p                                                }
  67.  
  68. {$PUSH}
  69. {$ALIGN MAC68K}
  70. {$LibExport+}
  71.  
  72. CONST
  73.     CMMInterfaceVersion            = 1;
  74.  
  75. { Component function selectors }
  76. { Required }
  77.     kCMMInit                    = 0;
  78.     kNCMMInit                    = 6;
  79.     kCMMMatchColors                = 1;
  80.     kCMMCheckColors                = 2;
  81.  
  82. { Optional }
  83.     kCMMValidateProfile            = 8;
  84.     kCMMFlattenProfile            = 14;
  85.     kCMMUnflattenProfile        = 15;
  86.     kCMMMatchBitmap                = 9;
  87.     kCMMCheckBitmap                = 10;
  88.     kCMMMatchPixMap                = 3;
  89.     kCMMCheckPixMap                = 4;
  90.     kCMMConcatenateProfiles        = 5;
  91.     kCMMConcatInit                = 7;
  92.     kCMMNewLinkProfile            = 16;
  93.     kCMMGetPS2ColorSpace        = 11;
  94.     kCMMGetPS2ColorRenderingIntent = 12;
  95.     kCMMGetPS2ColorRendering    = 13;
  96.     kCMMGetPS2ColorRenderingVMSize = 17;
  97.  
  98.  
  99. FUNCTION NCMInit(CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
  100.     {$IFC NOT GENERATINGCFM}
  101.     INLINE $2F3C, 8, 6, $7000, $A82A;
  102.     {$ENDC}
  103. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  104.     {$IFC NOT GENERATINGCFM}
  105.     INLINE $2F3C, 8, 0, $7000, $A82A;
  106.     {$ENDC}
  107. FUNCTION CMMatchColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT): CMError;
  108.     {$IFC NOT GENERATINGCFM}
  109.     INLINE $2F3C, 8, 1, $7000, $A82A;
  110.     {$ENDC}
  111. FUNCTION CMCheckColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT; VAR result: LONGINT): CMError;
  112.     {$IFC NOT GENERATINGCFM}
  113.     INLINE $2F3C, 12, 2, $7000, $A82A;
  114.     {$ENDC}
  115. { Optional functions }
  116. FUNCTION CMMValidateProfile(CMSession: ComponentInstance; prof: CMProfileRef; VAR valid: BOOLEAN): CMError;
  117.     {$IFC NOT GENERATINGCFM}
  118.     INLINE $2F3C, 8, 8, $7000, $A82A;
  119.     {$ENDC}
  120. FUNCTION CMMFlattenProfile(CMSession: ComponentInstance; prof: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  121.     {$IFC NOT GENERATINGCFM}
  122.     INLINE $2F3C, 16, 14, $7000, $A82A;
  123.     {$ENDC}
  124. FUNCTION CMMUnflattenProfile(CMSession: ComponentInstance; VAR resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  125.     {$IFC NOT GENERATINGCFM}
  126.     INLINE $2F3C, 12, 15, $7000, $A82A;
  127.     {$ENDC}
  128. FUNCTION CMMatchBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
  129.     {$IFC NOT GENERATINGCFM}
  130.     INLINE $2F3C, 16, 9, $7000, $A82A;
  131.     {$ENDC}
  132. FUNCTION CMCheckBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
  133.     {$IFC NOT GENERATINGCFM}
  134.     INLINE $2F3C, 16, 10, $7000, $A82A;
  135.     {$ENDC}
  136. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
  137.     {$IFC NOT GENERATINGCFM}
  138.     INLINE $2F3C, 12, 3, $7000, $A82A;
  139.     {$ENDC}
  140. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; {CONST}VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; VAR myBitMap: BitMap; refCon: UNIV Ptr): CMError;
  141.     {$IFC NOT GENERATINGCFM}
  142.     INLINE $2F3C, 16, 4, $7000, $A82A;
  143.     {$ENDC}
  144. FUNCTION CMConcatInit(CMSession: ComponentInstance; VAR profileSet: CMConcatProfileSet): CMError;
  145.     {$IFC NOT GENERATINGCFM}
  146.     INLINE $2F3C, 4, 7, $7000, $A82A;
  147.     {$ENDC}
  148. FUNCTION CMNewLinkProfile(CMSession: ComponentInstance; VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
  149.     {$IFC NOT GENERATINGCFM}
  150.     INLINE $2F3C, 12, 16, $7000, $A82A;
  151.     {$ENDC}
  152. FUNCTION CMMGetPS2ColorSpace(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  153.     {$IFC NOT GENERATINGCFM}
  154.     INLINE $2F3C, 16, 11, $7000, $A82A;
  155.     {$ENDC}
  156. FUNCTION CMMGetPS2ColorRenderingIntent(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  157.     {$IFC NOT GENERATINGCFM}
  158.     INLINE $2F3C, 16, 12, $7000, $A82A;
  159.     {$ENDC}
  160. FUNCTION CMMGetPS2ColorRendering(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  161.     {$IFC NOT GENERATINGCFM}
  162.     INLINE $2F3C, 20, 13, $7000, $A82A;
  163.     {$ENDC}
  164. FUNCTION CMMGetPS2ColorRenderingVMSize(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: LONGINT): CMError;
  165.     {$IFC NOT GENERATINGCFM}
  166.     INLINE $2F3C, 12, 17, $7000, $A82A;
  167.     {$ENDC}
  168. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  169.     {$IFC NOT GENERATINGCFM}
  170.     INLINE $2F3C, 12, 5, $7000, $A82A;
  171.     {$ENDC}
  172.  
  173. {$ALIGN RESET}
  174. {$POP}
  175.  
  176. {$SETC UsingIncludes := CMMComponentIncludes}
  177.  
  178. {$ENDC} {__CMMCOMPONENT__}
  179.  
  180. {$IFC NOT UsingIncludes}
  181.  END.
  182. {$ENDC}
  183.